<template>
	<view class="content login-page">
		<cu-custom bgColor="" :isBack="true"></cu-custom>
		<!-- <image class="logo" src="/static/img/logo@3x.png"></image> -->
		<view class="nav-box">
			<view class="n-b-login" @tap="goPage('login')">登录</view>
			<view class="n-b-reg">注册</view>
		</view>
		<view class="text-one">内测阶段，暂不开放注册功能</view>
		<view class="text-two">敬请期待</view>
	</view>
</template>

<script>
	export default {
		components: {
		},
		data() {
			return {
				
			}
		},
		methods: {
			goPage(routeName) {
				let page = getCurrentPages()
				let redirecte = false
				if (page.length > 1) {
					if (page[page.length - 1].route.indexOf(routeName) !== -1) {
						redirecte = true
					} else {
						redirecte = false
					}
				} else {
					redirecte = false
				}
				if (redirecte) {
					this.$mRouter.back(-1)
				} else {
					this.$mRouter.push({
						route: this.$mRoutesConfig[routeName],
					})
				}
			},
		}
	}
</script>

<style lang="scss" scoped>
	.login-page {
		position: relative;
		background-image: url("https://test.hrycf.com/hryxcx/regNoBg.jpg");
		background-repeat: no-repeat;
		background-size: 100% 100%;
		-moz-background-size: 100% 100%;
		text-align: center;
	}
	
	.nav-box{
		width: 433rpx;
		height: 76rpx;
		margin:264rpx auto 0rpx ;
		border-radius: 38rpx;
		background-color: #ffffff;
		display: flex;
		justify-content: space-around;
		align-items: center;
		.n-b-login{
			width:216rpx;
			height: 60rpx;
			text-align: center;
			line-height: 60rpx;
		}
		.n-b-reg{
			width:216rpx;
			height: 60rpx;
			text-align: center;
			line-height: 60rpx;
			background: #F99F60;
			border-radius: 30rpx;
			box-shadow: 0 5rpx 3px rgba(237, 79, 60, 0.57);
			margin-right: 10rpx;
			color:#ffffff
		}
	}
	.text-one{
		margin-top: 410rpx;
		text-align: center;
		font-size:48rpx;
		font-family:Adobe Heiti Std;
		font-weight:normal;
		color:rgba(18,29,56,1);
	}
	.text-two{
		margin-top: 60rpx;
		text-align: center;
		font-size:73rpx;
		font-family:Adobe Heiti Std;
		font-weight:normal;
		color:rgba(18,29,56,1);
	}
</style>
